Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

168
Views
Register-PSFLoggingProvider permanently | PSFramework module

I want to register a new logging provider to the PSFramework logging system.

What I use is the following command :

Register-PSFLoggingProvider -Name "Mail" -Enabled -MessageEvent $message_Event
Install-PSFLoggingProvider -Name "Mail"

It works fine as demonstrated by the following command :

Get-PSFLoggingProvider

Name              Enabled ProviderVersion IncludeModules ExcludeModules IncludeTags ExcludeTags Initialized InstallationOptional
----              ------- --------------- -------------- -------------- ----------- ----------- ----------- --------------------
filesystem        True    Version_1       {}             {}             {}          {}          True        True
Mail              True    Version_1       {}             {}             {}          {}          True        False
AzureLogAnalytics False   Version_2       {}             {}             {}          {}          False       False
console           False   Version_2       {}             {}             {}          {}          False       False
eventlog          False   Version_2       {}             {}             {}          {}          False       False
gelf              False   Version_2       {}             {}             {}          {}          False       False
logfile           False   Version_2       {}             {}             {}          {}          False       False
splunk            False   Version_2       {}             {}             {}          {}          False       False
Sql               False   Version_2       {}             {}             {}          {}          False       False

My problem is that when I switch consoles, the "Mail" provider is no longer in the list.

Name              Enabled ProviderVersion IncludeModules ExcludeModules IncludeTags ExcludeTags Initialized InstallationOptional
----              ------- --------------- -------------- -------------- ----------- ----------- ----------- --------------------
filesystem        True    Version_1       {}             {}             {}          {}          False       True
AzureLogAnalytics False   Version_2       {}             {}             {}          {}          False       False
console           False   Version_2       {}             {}             {}          {}          False       False
eventlog          False   Version_2       {}             {}             {}          {}          False       False
gelf              False   Version_2       {}             {}             {}          {}          False       False
logfile           False   Version_2       {}             {}             {}          {}          False       False
splunk            False   Version_2       {}             {}             {}          {}          False       False
Sql               False   Version_2       {}             {}             {}          {}          False       False

I would like to know if there is a way to save the provider permanently.

Thanks for your help !

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!